package com.moxiao.yfjh.module.activity.controller.admin.productInfo.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.moxiao.yfjh.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static com.moxiao.yfjh.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 相亲商品信息分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ProductInfoPageReqVO extends PageParam {

    @Schema(description = "商品编码")
    private String no;

    @Schema(description = "商品名称", example = "赵六")
    private String name;

    @Schema(description = "商品类型", example = "1")
    private Long productType;

    @Schema(description = "所属商家", example = "25159")
    private Long merchantId;

    @Schema(description = "地址")
    private String address;

    @Schema(description = "供货价", example = "21129")
    private String supplyPrice;

    @Schema(description = "平台售价", example = "7108")
    private String platformPrice;

    @Schema(description = "商品介绍")
    private String productIntroduct;

    @Schema(description = "状态", example = "1")
    private Byte status;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "按照售价进行升序或者降序:1=升序,2=降序")
    private Integer orderByPrice;

    @Schema(description = "商品封面")
    private String cover;
}
